<?php 

class UserController extends Controller{
	private $db;
	public function __init()
	{
		$this->db=K('User');
	}
	//用户注册
	public function zhuce()
	{
		if ($this->db->zhuceUser()) {
			$this->success('注册成功',__WEB__);
		}else{
			$this->error($this->db->error);
		}
		
	}

	//用户登录
	public function login()
	{ 
		if ($this->db->loginUser()) {
			$this->success('登录成功',__WEB__);
		}else{
			$this->error($this->db->error);
		}
		
	}

}

 ?>